package com.codeoss.module.workflow.service.impl;

import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.codeoss.framework.service.impl.BaseService;
import com.codeoss.module.workflow.dao.WorkflowActivityMapper;
import com.codeoss.module.workflow.model.WorkflowActivity;
import com.codeoss.module.workflow.service.IWorkflowActivityService;

@Service
public class WorkflowActivityService extends BaseService<WorkflowActivityMapper,WorkflowActivity> implements IWorkflowActivityService{

	@Override
	public WorkflowActivity getStartActivity(Long workflowWorkflowId) {
		// TODO Auto-generated method stub
		QueryWrapper<WorkflowActivity> query=new QueryWrapper<WorkflowActivity>();
		query.eq("workflow_workflow_id", workflowWorkflowId);
		query.eq("activity_type", "start");
		return getOne(query, true);
	}}